package com.heyi.controller;

import com.heyi.service.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class controller_wx {
   @Autowired
   private Service Service;
   //查询所有
   @RequestMapping(value = "QueryAll")
   public List QueryAll(){
      System.out.println("11"+ Service.QueryAccount());

    return    Service.QueryAccount();
   }

}
